package com.gsit.omega.ea.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import com.gsit.omega.ea.domain.Site;
import javax.persistence.ManyToOne;
import java.util.Set;
import java.util.HashSet;
import javax.persistence.ManyToMany;
import javax.persistence.CascadeType;

@RooJavaBean
@RooToString
@RooEntity
public class CompanyDetail  {

    private String email;

    private String webSiteLink;

    @ManyToOne
    private Site headOffice;

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Site> otherSites = new HashSet<Site>();
    
    @ManyToOne
    private User boardOfDirector;
    
}
